import Vue from 'vue'
import VueI18n from 'vue-i18n'
import elementEN from 'element-ui/lib/locale/lang/en'
import elementZH from 'element-ui/lib/locale/lang/zh-CN'
import myZH from './zh'
import myEN from './en'
import ck from 'js-cookie'
Vue.use(VueI18n)

const i18n = new VueI18n({
	// 此处放语言包
	locale: ck.get('lang') || 'zh', // 指定语言类型

	messages: {
		en: {
			...elementEN,
			...myEN
		},

		zh: {
			...elementZH,
			...myZH
		}
	}

})

export default i18n
